#!/usr/bin/env python
# -*- coding:utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.maximize_window()

driver.get('http://127.0.0.1:5000/index')
# #id
# id_fe = driver.find_element(By.ID,'kw')
# #name
# name_fe = driver.find_element(By.NAME,'kw')
# #class name
# class_fe = driver.find_elements(By.CLASS_NAME,'btn_detail')
# #tag_name
# tag_fe = driver.find_element(By.TAG_NAME,'kw')
# #link_text
# link_text_fe = driver.find_element(By.LINK_TEXT,'详情')
# #partial_link_text
# partial_link_text_fe = driver.find_element(By.PARTIAL_LINK_TEXT,'登录')
# #xpath
xpath_fe = driver.find_element(By.XPATH,'/html/body/input[2]')
# #css_selector
# css_selector_fe = driver.find_element(By.CSS_SELECTOR,'#head_wrapper .s_btn ')

print(xpath_fe)